package cn.ncupyh;

import java.util.StringJoiner;

public class API {
    public static void main(String[] args) {
    //StringJoiner                              分隔符
    StringJoiner sj = new StringJoiner("---");
    //                                          分隔符   最左侧符号 最右侧符号
    StringJoiner sjn = new StringJoiner(",","[","]");
    String results = sjn.add("abc").add("123").add("hahah").toString();
        System.out.println(results);
        int length = results.length();
        System.out.println(length);
        System.out.println(sjn.length());
    }
}
